package com.chongba.schedule.pojo;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.io.Serializable;
import java.util.Date;

/**
 * Created by 传智播客*黑马程序员.
 */
@Data // 
@ToString
@NoArgsConstructor
@EqualsAndHashCode(callSuper = false) // @Data 继承时候 注意 eqauls and hashcode方法不能继承

@TableName("taskinfo_logs")
public class TaskInfoLogsEntity extends TaskInfoEntity{


    /**
     *  `version` int(11) NOT NULL COMMENT '版本号,用乐观锁',
     `status` int(11) DEFAULT '0' COMMENT '状态 0=初始化状态 1=EXECUTED 2=CANCELLED',
     */
    @Version
    private Integer version;

    @TableField
    private Integer status;
}
